import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";
import { SetupComponent } from "./pages/setup/setup.component";
import { NgZorroAntdModule, NZ_I18N, zh_CN } from "ng-zorro-antd";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { MainModule } from "./pages/main/main.module";
import { MainComponent } from "./pages/main/main.component";
import { MainRoutingModule } from "./pages/main/main-routing.module";


const routes: Routes = [
  { path: 'main', redirectTo: '/main', pathMatch: 'full' },
  { path: "setup", component: SetupComponent },
  { path: '', redirectTo: '/main', pathMatch: 'full' }
];

@NgModule({
  imports: [RouterModule.forRoot(routes),
    MainModule
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
